package day0228;

public class startsWithDemo {
    public static void main(String[] args) {
        String line ="我爱Java";
        boolean start =line.startsWith("我爱");
        System.out.println(start);
        boolean end =line.endsWith("va");
        System.out.println(end);
    }
}
